package org.example.bobofish.user;

import org.example.bobofish.user.application.facade.UserFacade;
import org.example.bobofish.user.application.facade.entity.GetUserRightsListRequest;
import org.example.bobofish.user.application.facade.entity.GetUserRightsListResponse;
import org.example.bobofish.user.application.facade.map.UserFacadeMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

//扫描Mapper接口所在包
@MapperScan("org.example.bobofish.user.infrastructure.persistence.dao")
@SpringBootApplication
public class BobofishUserApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(BobofishUserApplication.class, args);
        UserFacade userFacade = context.getBean(UserFacade.class);
        GetUserRightsListResponse response = userFacade.getUserRightsList("qinbo1");
        System.out.println(response);

    }
}
